package com.kun.hosp.service;

import com.kun.model.entity.hosp.Schedule;
import org.springframework.data.domain.Page;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * @Author zhoukun
 * @Date 2021/5/3 13:50
 * 排班
 */
public interface ScheduleService {
    /**
     * 上传排班信息
     * @param paramMap
     */
    void save(Map<String, Object> paramMap);
    /**
     * 分页查询
     * @param paramMap
     * @return
     */
    Page<Schedule> selectPage(Map<String, Object> paramMap);
    /**
     * 删除科室
     * @param hosScheduleId
     */
    void remove( String hosScheduleId);

    /**
     * 查询排班规则数据
     * @param page
     * @param limit
     * @param hoscode
     * @param depcode
     * @return
     */
    Map<String, Object> getRuleSchedule(long page, long limit, String hoscode, String depcode);

    /**
     * 查询排班详细数据
     * @param hoscode
     * @param depcode
     * @param workDate
     * @return
     */
    List<Schedule> getDetailSchedule(String hoscode, String depcode, String workDate) throws ParseException;
}
